package org.example.controller;

import jakarta.servlet.http.HttpServletRequest;
import lombok.extern.slf4j.Slf4j;
import org.example.util.JsonResult;
import org.example.util.ResultTool;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Auther:Liu
 * @Testname:seventhcontroller
 * @Date:2025/7/30 17:09
 */
@CrossOrigin
@Slf4j
@RestController
@RequestMapping("/seventh")
public class seventhcontroller {

    @GetMapping("/a")
    public JsonResult a(HttpServletRequest request) {
        String token = request.getHeader("token");
        log.info("token:{}", token);
        return ResultTool.success(token);
    }
}
